<?php
class OdonErrorCode {    	
	const ADMISSION_REGISTER_FAIL = "ODON_001";	
	const PAYMENT_PATIENT_NOT_FOUND = "ODON_002";
	const PAYMENT_PATIENT_NOT_REGISTER_YET = "ODON_003";
	const PAYMENT_PATIENT_NOT_REGISTER_4DATE_YET = "ODON_004";
	public static function getErrorMess($errCode, $input1=null,$input2=null,$input3=null,$input4 = null) {
		switch ($errCode) {
			case OdonErrorCode::ADMISSION_REGISTER_FAIL:
				return L10nHelper::_("Registration for patient [%s] could not completed", $input1);
		    case OdonErrorCode::PAYMENT_PATIENT_NOT_FOUND:
                return L10nHelper::_("Could not find patient [%s]", $input1);
            case OdonErrorCode::PAYMENT_PATIENT_NOT_REGISTER_YET:
                return L10nHelper::_("Patient not register yet. Please register at reception deck.");
            case OdonErrorCode::PAYMENT_PATIENT_NOT_REGISTER_4DATE_YET:
                return L10nHelper::_("Patient not register for date [%s] yet or profile on this day already closed", $input1);
			default:
				;
				break;
		}
			
	}
}
?>